package com.rxst.msg.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户表
 *
 * @author rxst
 * @email rxst@gmail.com
 * @date 2021-08-19 11:47:01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@TableName("msgx_user")
public class MsgxUserEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 唯一自增主键id
     */
    @TableId
    @ApiModelProperty(value = "唯一自增主键id", notes = "唯一自增主键id")
    private Long id;
    /**
     * 用户 id
     */
    @ApiModelProperty(value = "用户 id", notes = "用户 id")
    private String userId;
    /**
     * 用户加盐
     */
    @ApiModelProperty(value = "用户加盐", notes = "用户加盐")
    private String userSalt;
    /**
     * 用户账号类型 0：系统管理员 1 普通用户
     */
    @ApiModelProperty(value = "用户账号类型 0：系统管理员 1 普通用户", notes = "用户账号类型 0：系统管理员 1 普通用户")
    private Integer userType;
    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账号", notes = "用户账号")
    private String userAccount;
    /**
     * 用户名称
     */
    @ApiModelProperty(value = "用户名称", notes = "用户名称")
    private String userName;
    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码", notes = "用户密码")
    private String userPassword;
    /**
     * 授权开始时间
     */
    @ApiModelProperty(value = "授权开始时间", example = "2021-08-19 00:00:00", notes = "授权开始时间" ,dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date userAuthStartTime;
    /**
     * 授权结束时间
     */
    @ApiModelProperty(value = "授权结束时间", example = "2021-08-19 00:00:00", notes = "授权结束时间" ,dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date userAuthEndTime;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "2021-08-19 00:00:00", notes = "创建时间" ,dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", notes = "创建人")
    private String createBy;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", example = "2021-08-19 00:00:00", notes = "修改时间",dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人", notes = "修改人")
    private String updateBy;
    /**
     * 是否删除 0 存在 1删除
     */
    @ApiModelProperty(value = "是否删除 0 存在 1删除", notes = "是否删除 0 存在 1删除")
    private Integer isDelete;


}
